package com.yjk.example;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Component;

/**
 * @author yujiakui
 * @version 1.0
 * Email: jkyu@haiyi-info.com
 * date: 2018/11/15 8:20
 * description：
 **/
@Component
public class Plugin2Handler implements PluginHandler,InitializingBean{
    @Override
    public String handle(String info) {
        System.out.println("Plugin2Handler---->"+info);
        return "Plugin2Handler---->"+info;
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("---->Plugin2Handler");
        System.out.println(handle("xxxxxxxxxxxxxx"));
    }
}
